var Car = (function() {
	var Car = function(model, year, miles) {
		this.model = model;
		this.year = year;
		this.miles = miles;
	}

	return function(model, year, miles) {
		return new Car(model, year, miles)
	}
})()

var tom = new Car('TOM', 2000, 20000)
console.log(tom.model)

var dudu = new Car('Dudu',2010,50000)
console.log(dudu.model)